// 定义书籍类
public class Book {
    private String title;
    private String publisher;
    private String author;
    private String publicationDate;

    // 构造方法
    public Book(String title, String publisher, String author, String publicationDate) {
        this.title = title;
        this.publisher = publisher;
        this.author = author;
        this.publicationDate = publicationDate;
    }

    // 获取书名
    public String getTitle() {
        return title;
    }

    // 获取出版社
    public String getPublisher() {
        return publisher;
    }

    // 获取作者
    public String getAuthor() {
        return author;
    }

    // 获取出版日期
    public String getPublicationDate() {
        return publicationDate;
    }

    // 输出书籍信息的方法
    public void printBookInfo() {
        System.out.println("书名： " + title);
        System.out.println("出版社： " + publisher);
        System.out.println("作者： " + author);
        System.out.println("出版日期： " + publicationDate);
    }
}

// 测试书籍对象
public class TestBook {
    public static void main(String[] args) {
        // 创建书籍对象并设置属性值
        Book book = new Book("Java编程思想", "机械工业出版社", "Bruce Eckel", "2006-09-01");

        // 输出书籍信息
        book.printBookInfo();
    }